package com.agileboot.domain.bot.conversationRecord.dto;

import cn.hutool.core.bean.BeanUtil;
import com.agileboot.domain.bot.conversationRecord.db.ConversationRecordEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConversationRecordDTO {

    public ConversationRecordDTO(ConversationRecordEntity entity) {
        if (entity != null) {
            BeanUtil.copyProperties(entity, this);
        }
    }

    private Long id;
    private String spoken;
    private String receivedName;
    private String groupName;
    private String roomType;
    private String answer;
    private Date createTime;
    private Long tokenUse;
}
